package com.zp.business.entity.bedRec.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zp.common.core.entity.BaseEntity;
import com.zp.common.excel.annotation.ExcelDictFormat;
import com.zp.common.excel.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 床位视图对象
 *
 * @author zhang peng
 * @ date 2024-06-25
 */
@Data
@ExcelIgnoreUnannotated
public class BedRecVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String bedId;

    /**
     * 病人ID
     */
    @ExcelProperty(value = "病人ID")
    private String patientId;

    /**
     * 住院ID
     */
    @ExcelProperty(value = "住院ID")
    private String visitId;

    /**
     * 护理单元ID
     */
    @ExcelProperty(value = "护理单元ID")
    private String wardCode;

    /**
     * 床号
     */
    @ExcelProperty(value = "床号")
    private Integer bedNo;

    /**
     * 床标号
     */
    @ExcelProperty(value = "床标号")
    private String bedLabel;

    /**
     * 房间
     */
    @ExcelProperty(value = "房间")
    private String roomNo;

    /**
     * 所属科室代码
     */
    @ExcelProperty(value = "所属科室代码")
    private String deptId;

    /**
     * 床位编制类型
     */
    @ExcelProperty(value = "床位编制类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bed_approved_type_dict")
    private String bedApprovedType;

    /**
     * 床位性别类型
     */
    @ExcelProperty(value = "床位性别类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bed_sex")
    private String bedSexType;

    /**
     * 床位等级（单人间、两人间等）
     */
    @ExcelProperty(value = "床位等级", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "单=人间、两人间等")
    private String bedGrade;

    /**
     * 床位状态
     */
    @ExcelProperty(value = "床位状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    private String bedStatus;

    /**
     * 是否锁住床位Y是，N否
     */
    @ExcelProperty(value = "是否锁住床位Y是，N否", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String lockStatus;

    /**
     * 锁床位操作员
     */
    @ExcelProperty(value = "锁床位操作员")
    private String lockOperator;

    /**
     * 包床标识
     */
    @ExcelProperty(value = "包床标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String bedOccupy;

    /**
     * 空调类型
     */
    @ExcelProperty(value = "空调类型")
    private String airconditionClass;

    /**
     * 最后一次计费时间
     */
    @ExcelProperty(value = "最后一次计费时间")
    private Date lastAcctDateTim;

    /**
     * 机构id
     */
    @ExcelProperty(value = "机构id")
    private String orgId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;

    /**
     * 床位等级名称
     */
    private String bedGradeName;

    /**
     * 护理单元名称
     */
    private String wordCodeName;

    /**
     * 总数
     */
    private Integer total;

    /**
     * 已占用
     */
    private Integer occupy;

    /**
     * 未占用
     */
    private Integer noOccupy;

}
